package com.googlecode.jgae.util;

import com.google.appengine.api.utils.SystemProperty;

import static com.google.appengine.api.utils.SystemProperty.Environment.Value.Development;
import static com.google.appengine.api.utils.SystemProperty.Environment.Value.Production;
import static com.google.appengine.api.utils.SystemProperty.environment;

/**
 * @author Denis Migol
 */
public class GaeEnvironment {
    private static final SystemProperty.Environment.Value environmentValue = environment.value();

    public static boolean isDevelopment() {
        return environmentValue == Development;
    }

    public static boolean isProduction() {
        return environmentValue == Production;
    }
}
